//分类遮罩显示隐藏
$(".classifty_btn").on("click",function(){
	if($(this).attr("check")=="false"){
		$(this).attr("check","true");
		$(".classifty").css("display","block");
		$("body").css("overflow","hidden");
		$(".classifty_nav>li").eq(0).on("click",function(e){
			var e=e||event;
	  		e.stopPropagation();
			location.href="../novel/newBook";
		})
		$(".classifty_nav>li").eq(1).on("click",function(e){
			var e=e||event;
	  		e.stopPropagation();
			location.href="../new/rankBook";
		})
		$(".classifty_nav>li").eq(2).on("click",function(e){
			var e=e||event;
	  		e.stopPropagation();
			location.href="../novel/category?from=category";
		})
		$(".classifty_nav>li").eq(3).on("click",function(e){
			var e=e||event;
	  		e.stopPropagation();
			location.href="../novel/freeBook";
		})
	}else{
		$(".classifty").css("display","none");
		$(this).attr("check","false");
		$("body").css("overflow","auto");
	}
})
$(".classifty").on("click",function(){
	$(".classifty_btn").trigger("click")
})
//跳转搜索页面
$(".search_hot").on("click",function(){
	location.href="../novel/search"
})
//返回上一页面
$(".return_back").on("click",function(){
    var from = $(this).attr("data-from");
    if(from != ''){
        if(from == 'home'){
            location.href="../novel/novelHomePage";
        }
    }else{
        window.history.back(-1);
    }
})